﻿using System.Threading;
using System.Threading.Tasks;

namespace Xms.Abp.Core;

public interface ISerialNumberProvider
{
    string Name { get; }
    Task<long> CreateAsync(string key, int quantity = 1, SerialNumberGrowthType growthType = SerialNumberGrowthType.None, CancellationToken cancellationToken = default);
}
